package com.zhy.sping.controller;

import com.zhy.sping.service.intf.OssLogService;
import com.zhy.sping.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/api/osslog/")
@CrossOrigin
public class OssLogController {
    @Autowired
    private OssLogService service;

    @PostMapping("uploadimg.do")
    public R uploadImg(MultipartFile file){
        return service.uploadImg(file);
    }

}
